import threading

"""
#lock 不能同时激活多个锁，
lock = threading.Lock()

lock.acquire()
lock.acquire()
lock.release()
lock.release()

"""

#Rlock 可同时使用多个锁，但必须成对使用，激活多少次锁就得关闭多少次锁
rlock = threading.RLock()

rlock.acquire()
rlock.acquire()
rlock.release()
rlock.release()
